import { VxeFormItemProps, VxeGridPropTypes } from '@gui-pkg/antdcomponents';
import { h } from 'vue';
import { Tag } from 'ant-design-vue';

export const columns: VxeGridPropTypes.Columns = [
  {
    title: '电话号码',
    field: 'mobile',
    align: 'center',
  },
  {
    title: '发送状态',
    field: 'reportStatus',
    align: 'center',
  },
  {
    title: '提交时间',
    field: 'submitDate',
    align: 'center',
  },
  {
    title: '接收时间',
    field: 'receiveDate',
    align: 'center',
  },
  {
    title: '发送失败的状态码',
    field: 'errorCode',
    align: 'center',
  },
];
export const searchFormSchema: VxeFormItemProps[] = [
  {
    field: 'phone',
    title: '电话号码',
    itemRender: {
      name: 'AInput',
    },
    span: 6,
  },

  {
    field: 'sendTime',
    title: '发送时间',
    itemRender: {
      name: 'ARangePicker',
      props: {
        format: 'YYYY-MM-DD HH:mm:ss',
        showTime: true
      },
    },
    span: 6,
  },
  {
    span: 12,
    align: 'right',
    className: '!pr-0',
    itemRender: {
      name: 'AButtonGroup',
      children: [
        {
          props: { type: 'primary', content: '查询', htmlType: 'submit' },
          attrs: { class: 'mr-2' },
        },
        { props: { type: 'default', htmlType: 'reset', content: '重置' } },
      ],
    },
  },
];
